package com.wuheng.smartlock;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context arg0, Intent arg1) {
		// TODO 自动生成的方法存根
		if (!MyService.getRunningState() && Prefs.isEnable(arg0)) {
			Intent intent = new Intent(arg0, MyService.class);
			arg0.startService(intent);
		}
	}

}
